-- GENERATED SPELL FOR [Treasure Hunting Swashbuckler] --


function spell0_7901(pUnit, Event) --@Disarm,n/a--
pUnit:FullCastSpellOnTarget(6713,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7901', 5294, 1)
end

function Sorts_7901(pUnit, Event)
local choix_sorts_7901 = math.random(0, 0)
if choix_sorts_7901 == 0 then
pUnit:RegisterEvent('spell0_7901', 1, 1)
end
end

function mob7901_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7901', math.random(1500, 3000), 1)
end

function mob7901_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7901_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7901_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7901, 1, 'mob7901_Action')
RegisterUnitEvent(7901, 2, 'mob7901_Leave')
RegisterUnitEvent(7901, 3, 'mob7901_Kill')
RegisterUnitEvent(7901, 4, 'mob7901_Die')
